.card {
  position: relative;

  a {
    text-decoration: none;
  }

  .card-cover {
    position: relative;
    .card-wrapper {
      position: absolute;
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      z-index: 1;
      .card-new {
        position: absolute;
        top: 0;
        right: 0;
        color: #fff;
        border-radius: 0 5px 0 5px;
        padding: 5px 10px;
        background: #e50914;
        z-index: 1;
        font-size: 14px;
      }
    }

    .ant-image {
      pointer-events: none;
      border-radius: 10px;
      width: 100%;

      .ant-image-img {
        aspect-ratio: 16/9;
        object-fit: cover;
      }
    }

    &:hover {
      .ant-image-img {
        transform: scale(1.1);
      }
    }
  }

  .card-info {
    margin-top: 5px;
    font-size: 14px;
    color: #333;
  }

  &.card-item {
    .card-wrapper {
      overflow: hidden;
      > .title {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 30px;
        line-height: 30px;
        border-radius: 0 0 10px 10px;
        color: #fff;
        font-size: 14px;
        background-image: linear-gradient(rgba(#000, 0.3), rgba(#000, 0.7));
        transition: all 0.3s ease-out 0s;
        overflow: hidden;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
      }
    }
  }
}

/* 图片 */
div.ant-image {
  vertical-align: bottom;
  overflow: hidden;

  div.ant-image-mask {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  .ant-image-img {
    pointer-events: none;
    transition: all 0.3s ease-out 0s;
  }

  &:hover {
    .ant-image-img {
      transform: scale(1.1);
    }
  }
}

/* 图片加载、错误 */
div.ant-image.ant-image-error {
  background-color: #ccc;

  .ant-image-img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
  }
}

@media (max-width: 768px) {
  .card.card-item .card-wrapper > .title {
    height: 20px;
    line-height: 20px;
    font-size: 12px;
  }

  .card .card-info {
    font-size: 12px;
  }

  .card.card-item .card-wrapper .card-new {
    padding: 0px 5px;
    font-size: 12px;
  }
}
